import { OrderStatusEnum, RefundStatusEnum, InvoiceStatusEnum } from "./enum";

export const OrderStatusEnumText: { [key in OrderStatusEnum]: string } = {
  [OrderStatusEnum.PENDING_PAYMENT]: '待支付',
  [OrderStatusEnum.COMPLETED]: '支付成功',
  [OrderStatusEnum.FAILURE]: '支付失败',
  [OrderStatusEnum.CANCELED]: '超时取消',
}

export const RefundStatusEnumText: { [key in RefundStatusEnum]: string } = {
  [RefundStatusEnum.PENDING]: '待处理',
  [RefundStatusEnum.AUDITING]: '审核中',
  [RefundStatusEnum.AUDIT_PASS]: '通过',
  [RefundStatusEnum.AUDIT_NO_PASS]: '审核不通过',
  [RefundStatusEnum.COMPLETED]: '退款完成',
}

export const InvoiceStatusEnumText: { [key in InvoiceStatusEnum]: string } = {
  [InvoiceStatusEnum.PENDING]: '待处理',
  [InvoiceStatusEnum.AUDITING]: '审核中',
  [InvoiceStatusEnum.COMPLETED]: '开票完成',
}